import type { IContentConfig } from '@/components/page-content/type'


const contentConfig: IContentConfig = {
  pageName:'system/menu',
  isMenu:true,
  header: {
    title: '菜单列表',
    btnTitle: '新增菜单',
  },
  hasPagination: false,
  tableItems: [
    {
      label: '菜单名称',
      prop: 'name',
      align:'left'
    },
    {
      label: '菜单类型',
      prop: 'menuType',
      slotName: 'menuType'
    },
    {
      label: '后台路由地址',
      prop: 'url',
      align:'left'
    },
    {
      label: '状态(启用/停用)',
      prop: 'status',
      slotName: 'status'
    },
    {
      label: '显示/隐藏',
      prop: 'hide',
      slotName: 'hide'
    },
    {
      label: '操作',
      prop: 'action',
      slotName: 'action'
    },

  ],
  childrenTree: {
    rowKey: 'id',
    treeProps: {
      children: 'children'
    }
  }
}

export default contentConfig
